import React, { Component } from 'react'

export default class DishTab extends Component {
    render() {
        let {list}=this.props
        return (
            <div className="category">
                {list.map((v,i)=>{
                  return <a key={i} className="item" href={'#'+i}>{v.title}</a>
              })}
            </div>
        )
    }
}
